from flask import Flask # 引入flask类
from flask import render_template #引入模板解析引擎

app = Flask(__name__)

@app.route('/hello')

@app.route('/hello/<name>')

def  hello(name=None):

    return render_template('msg.html',  name=name)

def websocket(name=None):

    return render_template('websocket.html', name=name)

if  __name__  ==  '__main__':

    app.run(host='127.0.0.1', port='8080', debug=True)
